-- GENERATED SPELL FOR [Necrolord Amarion] --


function spell0_27508(pUnit, Event) --@Decimate,n/a--
pUnit:FullCastSpellOnTarget(51339,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27508', 11000, 1)
end

function Sorts_27508(pUnit, Event)
local choix_sorts_27508 = math.random(0, 0)
if choix_sorts_27508 == 0 then
pUnit:RegisterEvent('spell0_27508', 1, 1)
end
end

function mob27508_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27508', math.random(1500, 3000), 1)
end

function mob27508_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27508_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27508_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27508, 1, 'mob27508_Action')
RegisterUnitEvent(27508, 2, 'mob27508_Leave')
RegisterUnitEvent(27508, 3, 'mob27508_Kill')
RegisterUnitEvent(27508, 4, 'mob27508_Die')
